import {request} from '@/utils/request.js'

/**
 * 领导表 API JS
 */

export default {

    /**
     * 获取领导表分页列表
     * @returns
     */
    submit(data = {}) {
        return request({
            url: 'temblor/car/apply/submit',
            method: 'post',
            data
        })
    },
    /**
     * 用户申请用车列表
     * @param params
     * @returns {*}
     */
    list(params = {}) {
        return request({
            url: 'temblor/car/apply/list',
            method: 'get',
            params
        })
    },
    /**
     * 用车记录
     * @param params
     * @returns {*}
     */
    record(params = {}) {
        return request({
            url: 'temblor/car/apply/record',
            method: 'get',
            params
        })
    },
    /**
     * 领导待审批列表
     * @param params
     * @returns {*}
     */
    approvalPending(params = {}) {
        return request({
            url: 'temblor/car/apply/approvalPending',
            method: 'get',
            params
        })
    },
    /**
     * 修改用车申请状态
     * @returns {*}
     * @param data
     */
    editStatus(data = {}) {
        return request({
            url: 'temblor/car/apply/editStatus',
            method: 'post',
            data
        })
    },
    submitInfo(data = {}) {
        return request({
            url: 'temblor/car/apply/submitInfo',
            method: 'post',
            data
        })
    },


}